// 封装token存取方法

import { TOKEN } from '@/utils/constants'

function setToken(token: string) {
	return localStorage.setItem(TOKEN, token)
}

function getToken() {
	return localStorage.getItem(TOKEN)
}

function clearToken() {
	return localStorage.removeItem(TOKEN)
}

export { setToken, getToken, clearToken }
